package com.example.arch;

import android.arch.lifecycle.LiveData;
import android.util.Log;
import com.example.arch.bean.User;

/**
 * Created by zhangwei on 2017/6/26.
 */
public class MyLiveData extends LiveData<User> {

    @Override
    protected void onActive() {
        super.onActive();
        Log.e("ss", "onactive listening");
    }

    @Override
    protected void onInactive() {
        super.onInactive();
        Log.e("ss", "oninactive  stop listening");
    }


}
